package com.lh.service.center;

import com.lh.pojo.Orders;
import com.lh.pojo.vo.OrderStatusCountsVO;
import com.lh.utils.PagedGridResult;

/**
 * @program: foodie-dev
 * @description:
 * @author: LH
 * @create: 2022-05-26 10:01
 **/
public interface MyOrderService {

    /**
     * 查询相应的订单
     * @param userId
     * @param orderStatus
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryMyOrdersVO(String userId, Integer orderStatus, Integer page, Integer pageSize);

    /**
     * @Description: 订单状态 --> 商家发货
     */
    public void updateDeliverOrderStatus(String orderId);

    /**
     * 根据userId和orderId查询订单
     * @param userId
     * @param orderId
     * @return
     */
    public Orders queryMyOrder(String userId, String orderId);

    /**
     * 买家确认收货
     * @param orderId
     * @return
     */
    public boolean confirmReceive(String orderId);

    /**
     * 买家删除订单
     * @param userId
     * @param orderId
     * @return
     */
    public boolean delete(String userId, String orderId);

    /**
     * 查询订单状态数目
     * @return
     */
    public OrderStatusCountsVO statusCounts(String userId);

    /**
     * 查询订单动向
     * @param userId
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult trend(String userId, Integer page, Integer pageSize);
}
